<!DOCTYPE html>
<html lang="en">
<%-include ../public/header.ejs%>

<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->

<body class="">
<!--<![endif]-->

<%-include ../public/navbar.ejs%>

<%-include ../public/aside.ejs%>




<div class="content">

    <div class="header">

        <h1 class="page-title">编辑管理员信息</h1>
    </div>

    <ul class="breadcrumb">
        <li><a href="<%=host%>/admin/index">首页</a> <span class="divider">/</span></li>
        <li><a href="<%=host%>/admin/admin">管理员管理</a> <span class="divider">/</span></li>
        <li class="active">编辑</li>
    </ul>

    <div class="container-fluid">
        <div class="row-fluid">

            <div class="btn-toolbar">
                <input type="submit" value="保存" class="btn btn-primary" form="tab">
                <div class="btn-group">
                </div>
            </div>
            <div class="well">
                <ul class="nav nav-tabs">
                    <li class="active">编辑管理员信息</li>
                </ul>
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane active in" id="home">
                        <form id="tab" action="<%=host%>/admin/register/editPost" method="post" enctype="multipart/form-data">
                            <label>用户名</label>
                            <input type="text" value="<%=list[0].username%>" class="input-xlarge" name="username">
                            <label>密码</label>
                            <input type="text" value="<%=list[0].password%>" class="input-xlarge" name="password">

                            <label>状态</label>
                            <%if(list[0].status=="1"){%>
                            <p>是<input type="radio" value="1" checked class="input-xlarge" name="status">                                                否
                                <input type="radio" value="0" class="input-xlarge" name="status"></p>
                            <%}else{%>
                            <p> 是<input type="radio" value="1" class="input-xlarge" name="status"> 否
                                <input type="radio" value="0" checked class="input-xlarge" name="status"></p>
                            <%}%>

                            <label>头像</label>
                            <input type="file" name="photo" class="input-xlarge">
                            <input type="hidden" value="<%=list[0]._id%>" name="id">
                            <img src="<%=host%>/<%=list[0].img%>" alt="" class="photo" width="100" height="100">
                        </form>
                    </div>
                    <div class="tab-pane fade" id="profile">

                    </div>
                </div>

            </div>


        </div>
    </div>
</div>

<style>
    #tab {
        position: relative
    }

    #tab .photo {
        position: absolute;
        bottom: -20px;
        right: 500px;
    }
</style>

<script src="<%=host%>/lib/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript">
    $("[rel=tooltip]").tooltip();
    $(function () {
        $('.demo-cancel-click').click(function () { return false; });
    });
</script>

</body>

</html>